package vashion.azeroth.core.activity;

import java.util.HashMap;
import java.util.Map;

/**
 * 各种不同活动的schemainfo<BR/>
 * 每一种活动的schema内容包括： schemaName:schemaDesc
 * <p/>
 * 创建时间: 2014-06-17
 */
public class ActiveSchemaInfo {

    public static final Map<Integer/** activeType */, String/** attributes */> activityTypeToSchemaInfoMap
            = new HashMap<Integer, String>();

    public static final Map<Integer/** activeType */, String/** activeDescName */> activityTypeToDescNameMap
            = new HashMap<Integer, String>();

    /**
     * 由于部分schema废弃，因此部分schema将不予展示在后台页面
     */
    public static final Map<Integer/** activeType */, String/** activeDescName */> activityTypeToDescNameShowMap
            = new HashMap<Integer, String>();

    public static final Map<Integer/** activeType */, Short/** unitType */> activityTypeToUnitTypeMap
            = new HashMap<Integer, Short>();

    static {
        for (ActiveSchemaEnum activeSchemaEnum : ActiveSchemaEnum.values()) {
            activityTypeToDescNameMap.put(activeSchemaEnum.getActivityType(), activeSchemaEnum.getDescName());
            activityTypeToSchemaInfoMap.put(activeSchemaEnum.getActivityType(), activeSchemaEnum.getAttributes());
            activityTypeToUnitTypeMap.put(activeSchemaEnum.getActivityType(), activeSchemaEnum.getActiveContentUnitType().getUnitType());
        }
        for (ActiveSchemaEnum activeSchemaEnum : ActiveSchemaEnum.valuesShow()) {
            activityTypeToDescNameShowMap.put(activeSchemaEnum.getActivityType(), activeSchemaEnum.getDescName());
        }
    }

}
